package com.holly.unit.bpmn.activiti.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.holly.unit.bpmn.activiti.entity.ActivitiZNewsTemplate;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 接口描述: 流程消息扩展数据仓库
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/3/9 10:26
 */
public interface ActivitiZNewsTemplateMapper extends BaseMapper<ActivitiZNewsTemplate> {

    @Select("SELECT * FROM act_z_news WHERE template_code = #{code} and del_flag='N'")
    List<ActivitiZNewsTemplate> selectByCode(@Param("code") String code);
}
